package com.gxg.entities;

import java.sql.Timestamp;
import javax.validation.constraints.Size;
import org.json.JSONObject;

public class ExperimentalNode
{
  @Size(max=15)
  private String ip;
  private String userId;
  private Timestamp datetime;
  private String status;
  private int groupNumber;
  
  public String getIp()
  {
    return this.ip;
  }
  
  public void setIp(String ip)
  {
    this.ip = ip;
  }
  
  public String getUserId()
  {
    return this.userId;
  }
  
  public void setUserId(String userId)
  {
    this.userId = userId;
  }
  
  public Timestamp getDatetime()
  {
    return this.datetime;
  }
  
  public void setDatetime(Timestamp datetime)
  {
    this.datetime = datetime;
  }
  
  public String getStatus()
  {
    return this.status;
  }
  
  public void setStatus(String status)
  {
    this.status = status;
  }
  
  public int getGroupNumber()
  {
    return this.groupNumber;
  }
  
  public void setGroupNumber(int groupNumber)
  {
    this.groupNumber = groupNumber;
  }
  
  public String toString()
  {
    JSONObject jsonObject = new JSONObject();
    jsonObject.accumulate("ip", this.ip);
    jsonObject.accumulate("userId", this.userId);
    jsonObject.accumulate("datetime", this.datetime);
    jsonObject.accumulate("status", this.status);
    jsonObject.accumulate("groupNumber", Integer.valueOf(this.groupNumber));
    return jsonObject.toString();
  }
}
